<% if @burndown %>
  <%= render :partial => 'burndown', :locals => {:div => 'burndown_', :burndown => @burndown } %>

  <div class="burndown_chart" id="burndown_<%= @burndown.sprint_id %>" style="height:460px;"><div class="loading">Generating chart...</div></div>

  <fieldset>
      <legend><%= l(:label_chart_options) %></legend>
      <% @burndown.series(:all).each do |series| %>
          <input class="series_enabled" type="checkbox" onclick="burndown_configure(this)" id="<%= series.name %>_enabled" name="<%= series.name %>_enabled" value="<%= series.name %>"><%= l(series.name) %><br/>
      <% end %>
  </fieldset>
<% else %>
  No burndown data available -- are the sprint start- and end dates set?
<% end %>
